package com.gameapplet.cash.service.Impl;

import com.gameapplet.cash.dao.IBalanceDao;
import com.gameapplet.cash.model.Balance;
import com.gameapplet.cash.service.IBalanceService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service("balanceService")
public class BalanceServiceImpl implements IBalanceService {

    @Resource(name = "balanceDao")
    IBalanceDao balanceDao;

    @Override
    public Balance selectBalanceByOpenid(String openid) {
        return balanceDao.selectBalanceByOpenid(openid);
    }

    @Override
    public int insertBalance(Balance balance) {
        return balanceDao.insertBalance(balance);
    }

    @Override
    public int updateBalanceById(Balance balance) {
        return balanceDao.updateBalanceById(balance);
    }
}
